package com.lesson11.waiguan;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/9/2 19:29
 */
public class Light
{
    private Light(){}

    private static Light instance = new Light();

    public static Light getInstance(){
        return instance;
    }

    public void on(){
        System.out.println("灯光on");
    }

    public void off(){
        System.out.println("灯光off");
    }
}
